<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <p:panel style="border: none;">
        <p:panel header="Menu Principal" style="border: none;"/>
    </p:panel>
    <h:form>
        <p:slideMenu style="width: 99%;border: none; background: transparent;" backLabel="Atrás" >
            <p:menuitem value="Inicio" update=":panelPrincipalId" icon="fa fa-home">
                <f:setPropertyActionListener value="./pages/content/home.xhtml" target="#{navigationBean.navigationContent}"/>
            </p:menuitem>

            <p:submenu label="Usuarios" icon="fa fa-group">
                <p:menuitem value="Crear" icon="fa fa-user"
                            update=":panelPrincipalId"
                            action="#{systemUserBean.initValues()}">
                    <f:setPropertyActionListener target="#{navigationBean.navigationContent}"
                                                 value="./pages/content/user/create_user.xhtml" />
                </p:menuitem>
                <p:menuitem value="Ver" icon="fa fa-sitemap"
                            update=":panelPrincipalId"
                            action="#{systemUserBean.initValues()}">
                    <f:setPropertyActionListener target="#{navigationBean.navigationContent}"
                                                 value="./pages/content/user/view_user.xhtml" />
                </p:menuitem>
            </p:submenu>
            <p:submenu label="Correos" icon="fa fa-envelope">
                <p:menuitem value="Servidor SMTP" icon="fa fa-cogs"
                            update=":panelPrincipalId" action="#{eMailBean.initValuesSendEmail()}">
                    <f:setPropertyActionListener value="./pages/content/email/configure_smtp_user.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>

            <p:submenu label="Configuración" icon="fa fa-gears">
                <p:menuitem value="Apertura de Socios" icon="fa fa-rocket" 
                            action="#{benefitBean.initValueApertureAssociate()}"
                            update=":panelPrincipalId">
                    <f:setPropertyActionListener value="./pages/content/configuration/new_aperture_associate.xhtml"
                                                 target="#{navigationBean.navigationContent}"/>
                </p:menuitem>
            </p:submenu>
        </p:slideMenu>
    </h:form>

</ui:composition>

